package com.mitaotao._1_语法._4_循环.双循环;

import java.util.Scanner;

public class _01_矩形 {
    public static void main(String[] args) {
        //打印矩形
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入长：");
        int chang = scanner.nextInt();
        System.out.println("请输入宽：");
        int kuan = scanner.nextInt();

        //后打印宽
        for (int i=1;i<=kuan;i++){
            //先打印长
            for (int j=1;j<chang;j++){
                System.out.print("*"+"\t");
            }
            System.out.println("*");
        }
        scanner.close();
    }
}
